package com.hong.spring.sepl;

import org.springframework.expression.Expression;
import org.springframework.expression.ExpressionParser;
import org.springframework.expression.spel.standard.SpelExpressionParser;

/**
 * @Auther: csh
 * @Date: 2020/7/13 15:38
 * @Description:
 */
public class SpelHello {
    public static void main(String[] args) {
        ExpressionParser parser = new SpelExpressionParser();
        Expression exp = parser.parseExpression("'Hello'+'World'");
        String message = (String)exp.getValue();
        System.out.println(message);
    }
}
